import java.util.ArrayList;
import java.util.Random;

/**
 * @author 赵希奥
 * @date 2022/3/18 21:16
 * @gitHub https://github.com/CKXGZXA
 * @gitee https://gitee.com/ckxgzxa
 * @description:
 */
public class Multiton {
    public static Multiton[] array = new Multiton[10];

    private Multiton() {

    }

    private static class HolderClass {
        private final static Multiton INSTANCE = new Multiton();
    }

    public static Multiton getInstance() {
        return HolderClass.INSTANCE;
    }
    public int random() {
        Random r = new Random();
        return r.nextInt(array.length);
    }

}
